<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>商品列表 - SocialMart</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #4f46e5;
            --primary-light: #e0e7ff;
            --secondary: #ec4899;
            --secondary-light: #fee2e2;
            --dark: #1e293b;
            --light: #f8fafc;
            --gray: #64748b;
            --light-gray: #e2e8f0;
            --border-color: #cbd5e1;
        }
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: #f5f7fa;
            color: var(--dark);
        }
        
        /* 导航栏样式 */
        .navbar {
            background-color: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        
        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .search-container {
            position: relative;
            max-width: 600px;
            width: 100%;
        }
        
        .search-input {
            width: 100%;
            padding: 0.75rem 1rem 0.75rem 2.5rem;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 0.95rem;
            transition: all 0.2s;
        }
        
        .search-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-light);
        }
        
        .search-icon {
            position: absolute;
            left: 0.75rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray);
        }
        
        .nav-link {
            color: var(--dark);
            font-weight: 500;
            margin-left: 1rem;
            transition: color 0.2s;
        }
        
        .nav-link:hover, .nav-link.active {
            color: var(--primary);
        }
        
        .avatar {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            object-fit: cover;
            cursor: pointer;
        }
        
        /* 主内容区布局 */
        .main-container {
            display: flex;
            gap: 2rem;
            margin-top: 1.5rem;
        }
        
        /* 筛选侧边栏 */
        .filters-sidebar {
            width: 280px;
            flex-shrink: 0;
        }
        
        .filter-card {
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            padding: 1.25rem;
            margin-bottom: 1.5rem;
        }
        
        .filter-title {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .clear-filters {
            font-size: 0.85rem;
            color: var(--primary);
            cursor: pointer;
            font-weight: 500;
        }
        
        .filter-group {
            margin-bottom: 1.25rem;
        }
        
        .filter-label {
            font-weight: 500;
            margin-bottom: 0.75rem;
            display: block;
        }
        
        .category-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.4rem 0;
            cursor: pointer;
            transition: color 0.2s;
        }
        
        .category-item:hover {
            color: var(--primary);
        }
        
        .category-item input {
            accent-color: var(--primary);
        }
        
        .price-inputs {
            display: flex;
            gap: 0.75rem;
        }
        
        .price-input {
            flex: 1;
            padding: 0.5rem;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            font-size: 0.9rem;
        }
        
        .price-input:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        .rating-stars {
            color: #d1d5db;
            font-size: 1.2rem;
        }
        
        .rating-stars.filled {
            color: #f59e0b;
        }
        
        .rating-option {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 0.5rem;
            cursor: pointer;
        }
        
        .rating-text {
            font-size: 0.9rem;
        }
        
        .apply-filters {
            width: 100%;
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 0.75rem;
            font-weight: 500;
            cursor: pointer;
            transition: background-color 0.2s;
            margin-top: 0.5rem;
        }
        
        .apply-filters:hover {
            background-color: #4338ca;
        }
        
        /* 商品列表区 */
        .products-section {
            flex: 1;
        }
        
        .results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .results-count {
            font-weight: 500;
            color: var(--gray);
        }
        
        .sort-container {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .sort-label {
            font-weight: 500;
            font-size: 0.9rem;
        }
        
        .sort-select {
            padding: 0.5rem 1rem;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            font-size: 0.9rem;
            background-color: white;
        }
        
        /* 商品网格 */
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
        }
        
        /* 商品卡片 */
        .product-card {
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        
        .product-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        }
        
        .product-image-container {
            position: relative;
            width: 100%;
            height: 200px;
            background-color: #f1f5f9;
            overflow: hidden;
        }
        
        .product-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
        }
        
        .product-card:hover .product-image {
            transform: scale(1.05);
        }
        
        .no-image {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            color: var(--gray);
            background-color: #f1f5f9;
        }
        
        .no-image i {
            font-size: 3rem;
            margin-bottom: 0.5rem;
        }
        
        .product-badge {
            position: absolute;
            top: 0.75rem;
            left: 0.75rem;
            background-color: var(--secondary);
            color: white;
            font-size: 0.8rem;
            padding: 0.25rem 0.75rem;
            border-radius: 4px;
            font-weight: 500;
        }
        
        .product-info {
            padding: 1rem;
        }
        
        .product-author {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
            font-size: 0.85rem;
            color: var(--gray);
        }
        
        .author-avatar {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .product-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            height: 44px;
        }
        
        .product-rating {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            margin-bottom: 0.5rem;
        }
        
        .product-rating-stars {
            color: #f59e0b;
            font-size: 0.9rem;
        }
        
        .product-rating-count {
            font-size: 0.8rem;
            color: var(--gray);
        }
        
        .product-price {
            font-weight: 600;
            color: var(--primary);
            margin-bottom: 0.75rem;
            font-size: 1.1rem;
        }
        
        .product-stats {
            display: flex;
            align-items: center;
            gap: 1rem;
            font-size: 0.8rem;
            color: var(--gray);
            border-top: 1px solid var(--light-gray);
            padding-top: 0.75rem;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .product-actions {
            display: flex;
            gap: 0.5rem;
            margin-top: 0.75rem;
        }
        
        .action-btn {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.25rem;
            padding: 0.5rem;
            border-radius: 6px;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
        }
        
        .like-btn {
            background-color: white;
            border: 1px solid var(--border-color);
            color: var(--dark);
        }
        
        .like-btn:hover, .like-btn.liked {
            background-color: var(--secondary-light);
            color: var(--secondary);
            border-color: var(--secondary);
        }
        
        .save-btn {
            background-color: white;
            border: 1px solid var(--border-color);
            color: var(--dark);
        }
        
        .save-btn:hover, .save-btn.saved {
            background-color: var(--primary-light);
            color: var(--primary);
            border-color: var(--primary);
        }
        
        /* 分页 */
        .pagination-container {
            display: flex;
            justify-content: center;
            margin-top: 2.5rem;
            margin-bottom: 2rem;
        }
        
        .pagination {
            display: flex;
            gap: 0.5rem;
        }
        
        .page-btn {
            width: 36px;
            height: 36px;
            border-radius: 6px;
            border: 1px solid var(--border-color);
            background-color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .page-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
        }
        
        .page-btn.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .page-btn.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .main-container {
                flex-direction: column;
            }
            
            .filters-sidebar {
                width: 100%;
            }
            
            .filters-container {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 1rem;
            }
        }
        
        @media (max-width: 768px) {
            .filters-container {
                grid-template-columns: 1fr;
            }
            
            .results-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }
            
            .products-grid {
                grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            }
        }
        
        @media (max-width: 576px) {
            .search-container {
                max-width: 100%;
                margin: 0.75rem 0;
            }
            
            .products-grid {
                grid-template-columns: 1fr;
            }
            
            .action-btn span {
                display: none;
            }
            
            .action-btn {
                gap: 0;
            }
        }
        
        /* 筛选器展开/折叠控制 */
        .filter-toggle {
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            padding: 0.75rem;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            margin-bottom: 1rem;
        }
        
        @media (max-width: 768px) {
            .filter-toggle {
                display: flex;
            }
            
            .filters-sidebar {
                display: none;
            }
            
            .filters-sidebar.active {
                display: block;
                margin-bottom: 1.5rem;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg py-3 px-4">
        <div class="container">
            <a href="#" class="logo">
                <i class="fas fa-shopping-bag"></i>
                SocialMart
            </a>
            
            <div class="search-container mx-3">
                <i class="fas fa-search search-icon"></i>
                <input type="text" class="search-input" placeholder="搜索商品、品牌或用户...">
            </div>
            
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav ms-auto align-items-center">
                    <li class="nav-item">
                        <a class="nav-link" href="#">
                            <i class="fas fa-home me-1"></i>首页
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="#">
                            <i class="fas fa-th-list me-1"></i>商品列表
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">
                            <i class="fas fa-bell me-1"></i>通知
                        </a>
                    </li>
                    <li class="nav-item ms-2">
                        <img src="https://picsum.photos/100/100?random=1" alt="用户头像" class="avatar">
                    </li>
                </ul>
            </div>
        </div>
    </nav>
    
    <!-- 移动端筛选器切换按钮 -->
    <div class="container">
        <div class="filter-toggle">
            <span><i class="fas fa-filter me-2"></i>筛选条件</span>
            <i class="fas fa-chevron-down"></i>
        </div>
    </div>
    
    <!-- 主内容区 -->
    <div class="container main-container">
        <!-- 筛选侧边栏 -->
        <div class="filters-sidebar">
            <div class="filters-container">
                <!-- 分类筛选 -->
                <div class="filter-card">
                    <div class="filter-title">
                        <span>商品分类</span>
                        <span class="clear-filters">清除</span>
                    </div>
                    
                    <div class="filter-group">
                        <div class="category-item">
                            <input type="checkbox" id="category-all" checked>
                            <label for="category-all">全部商品</label>
                        </div>
                        <div class="category-item">
                            <input type="checkbox" id="category-electronics">
                            <label for="category-electronics">电子产品</label>
                        </div>
                        <div class="category-item">
                            <input type="checkbox" id="category-clothing">
                            <label for="category-clothing">服装鞋帽</label>
                        </div>
                        <div class="category-item">
                            <input type="checkbox" id="category-home">
                            <label for="category-home">家居用品</label>
                        </div>
                        <div class="category-item">
                            <input type="checkbox" id="category-beauty">
                            <label for="category-beauty">美妆护肤</label>
                        </div>
                        <div class="category-item">
                            <input type="checkbox" id="category-books">
                            <label for="category-books">图书文具</label>
                        </div>
                        <div class="category-item">
                            <input type="checkbox" id="category-sports">
                            <label for="category-sports">运动户外</label>
                        </div>
                        <div class="category-item">
                            <input type="checkbox" id="category-food">
                            <label for="category-food">美食特产</label>
                        </div>
                    </div>
                </div>
                
                <!-- 价格筛选 -->
                <div class="filter-card">
                    <div class="filter-title">
                        <span>价格范围</span>
                        <span class="clear-filters">重置</span>
                    </div>
                    
                    <div class="filter-group">
                        <div class="price-inputs">
                            <input type="number" class="price-input" placeholder="最低" min="0">
                            <input type="number" class="price-input" placeholder="最高" min="0">
                        </div>
                        <button class="apply-filters">应用价格</button>
                    </div>
                    
                    <div class="filter-group">
                        <div class="category-item">
                            <input type="radio" name="price-range" id="price-all" checked>
                            <label for="price-all">全部价格</label>
                        </div>
                        <div class="category-item">
                            <input type="radio" name="price-range" id="price-0-50">
                            <label for="price-0-50">¥0 - ¥50</label>
                        </div>
                        <div class="category-item">
                            <input type="radio" name="price-range" id="price-50-100">
                            <label for="price-50-100">¥50 - ¥100</label>
                        </div>
                        <div class="category-item">
                            <input type="radio" name="price-range" id="price-100-300">
                            <label for="price-100-300">¥100 - ¥300</label>
                        </div>
                        <div class="category-item">
                            <input type="radio" name="price-range" id="price-300-500">
                            <label for="price-300-500">¥300 - ¥500</label>
                        </div>
                        <div class="category-item">
                            <input type="radio" name="price-range" id="price-500+">
                            <label for="price-500+">¥500以上</label>
                        </div>
                    </div>
                </div>
                
                <!-- 评分筛选 -->
                <div class="filter-card">
                    <div class="filter-title">
                        <span>用户评分</span>
                        <span class="clear-filters">重置</span>
                    </div>
                    
                    <div class="filter-group">
                        <div class="rating-option">
                            <input type="radio" name="rating" id="rating-all" checked class="rating-input">
                            <label for="rating-all" class="rating-label">
                                <div class="rating-stars">
                                    <span class="filled"><i class="fas fa-star"></i><i class="fas fa-star"></i><i class="fas fa-star"></i><i class="fas fa-star"></i><i class="fas fa-star"></i></span>
                                </div>
                                <span class="rating-text">全部评分</span>
                            </label>
                        </div>
                        
                        <div class="rating-option">
                            <input type="radio" name="rating" id="rating-4+" class="rating-input">
                            <label for="rating-4+" class="rating-label">
                                <div class="rating-stars">
                                    <span class="filled"><i class="fas fa-star"></i><i class="fas fa-star"></i><i class="fas fa-star"></i><i class="fas fa-star"></i></span>
                                    <span><i class="fas fa-star"></i></span>
                                    <span class="rating-text">4星及以上</span>
                                </div>
                            </label>
                        </div>
                        
                        <div class="rating-option">
                            <input type="radio" name="rating" id="rating-3+" class="rating-input">
                            <label for="rating-3+" class="rating-label">
                                <div class="rating-stars">
                                    <span class="filled"><i class="fas fa-star"></i><i class="fas fa-star"></i><i class="fas fa-star"></i></span>
                                    <span><i class="fas fa-star"></i><i class="fas fa-star"></i></span>
                                    <span class="rating-text">3星及以上</span>
                                </div>
                            </label>
                        </div>
                        
                        <div class="rating-option">
                            <input type="radio" name="rating" id="rating-2+" class="rating-input">
                            <label for="rating-2+" class="rating-label">
                                <div class="rating-stars">
                                    <span class="filled"><i class="fas fa-star"></i><i class="fas fa-star"></i></span>
                                    <span><i class="fas fa-star"></i><i class="fas fa-star"></i><i class="fas fa-star"></i></span>
                                    <span class="rating-text">2星及以上</span>
                                </div>
                            </label>
                        </div>
                    </div>
                </div>
                
                <!-- 其他筛选 -->
                <div class="filter-card">
                    <div class="filter-title">
                        <span>其他筛选</span>
                        <span class="clear-filters">重置</span>
                    </div>
                    
                    <div class="filter-group">
                        <div class="category-item">
                            <input type="checkbox" id="filter-free-shipping">
                            <label for="filter-free-shipping">免费配送</label>
                        </div>
                        <div class="category-item">
                            <input type="checkbox" id="filter-on-sale">
                            <label for="filter-on-sale">促销商品</label>
                        </div>
                        <div class="category-item">
                            <input type="checkbox" id="filter-new-arrivals">
                            <label for="filter-new-arrivals">新品上市</label>
                        </div>
                        <div class="category-item">
                            <input type="checkbox" id="filter-trending">
                            <label for="filter-trending">热门商品</label>
                        </div>
                        <div class="category-item">
                            <input type="checkbox" id="filter-with-images">
                            <label for="filter-with-images">有图片的商品</label>
                        </div>
                    </div>
                </div>
            </div>
            
            <button class="apply-filters">应用所有筛选条件</button>
        </div>
        
        <!-- 商品列表区 -->
        <div class="products-section">
            <!-- 结果头部 -->
            <div class="results-header">
                <div class="results-count">找到 248 个商品</div>
                
                <div class="sort-container">
                    <span class="sort-label">排序方式:</span>
                    <select class="sort-select">
                        <option value="recommended">推荐排序</option>
                        <option value="popular">最受欢迎</option>
                        <option value="latest">最新上架</option>
                        <option value="price-low">价格从低到高</option>
                        <option value="price-high">价格从高到低</option>
                        <option value="rating">评分最高</option>
                    </select>
                </div>
            </div>
            
            <!-- 商品网格 -->
            <div class="products-grid">
                <!-- 商品1 -->
                <div class="product-card">
                    <div class="product-image-container">
                        <img src="https://picsum.photos/600/400?random=10" alt="北欧风格简约台灯" class="product-image">
                        <div class="product-badge">热销</div>
                    </div>
                    
                    <div class="product-info">
                        <div class="product-author">
                            <img src="https://picsum.photos/100/100?random=20" alt="用户头像" class="author-avatar">
                            <span>创意家居坊</span>
                        </div>
                        
                        <h3 class="product-title">北欧风格简约台灯 卧室床头灯创意现代简约温馨浪漫调光灯具</h3>
                        
                        <div class="product-rating">
                            <div class="product-rating-stars">
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star-half-alt"></i>
                            </div>
                            <span class="product-rating-count">(128)</span>
                        </div>
                        
                        <div class="product-price">¥129.00</div>
                        
                        <div class="product-stats">
                            <div class="stat-item">
                                <i class="far fa-eye"></i>
                                <span>2.4k</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-comment"></i>
                                <span>136</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-bookmark"></i>
                                <span>528</span>
                            </div>
                        </div>
                        
                        <div class="product-actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-heart"></i>
                                <span>喜欢</span>
                            </button>
                            <button class="action-btn save-btn">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 商品2 -->
                <div class="product-card">
                    <div class="product-image-container">
                        <img src="https://picsum.photos/600/400?random=11" alt="秋季新款直筒牛仔裤" class="product-image">
                        <div class="product-badge">新品</div>
                    </div>
                    
                    <div class="product-info">
                        <div class="product-author">
                            <img src="https://picsum.photos/100/100?random=21" alt="用户头像" class="author-avatar">
                            <span>时尚穿搭达人</span>
                        </div>
                        
                        <h3 class="product-title">秋季新款直筒牛仔裤 宽松显瘦百搭休闲长裤</h3>
                        
                        <div class="product-rating">
                            <div class="product-rating-stars">
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="far fa-star"></i>
                            </div>
                            <span class="product-rating-count">(256)</span>
                        </div>
                        
                        <div class="product-price">¥189.00</div>
                        
                        <div class="product-stats">
                            <div class="stat-item">
                                <i class="far fa-eye"></i>
                                <span>5.7k</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-comment"></i>
                                <span>328</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-bookmark"></i>
                                <span>1254</span>
                            </div>
                        </div>
                        
                        <div class="product-actions">
                            <button class="action-btn like-btn liked">
                                <i class="fas fa-heart"></i>
                                <span>喜欢</span>
                            </button>
                            <button class="action-btn save-btn">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 商品3 -->
                <div class="product-card">
                    <div class="product-image-container">
                        <div class="no-image">
                            <i class="fas fa-paint-brush"></i>
                            <div>暂无图片</div>
                        </div>
                    </div>
                    
                    <div class="product-info">
                        <div class="product-author">
                            <img src="https://picsum.photos/100/100?random=22" alt="用户头像" class="author-avatar">
                            <span>手工艺术品</span>
                        </div>
                        
                        <h3 class="product-title">定制手绘肖像画 真人照片转手绘油画 生日礼物</h3>
                        
                        <div class="product-rating">
                            <div class="product-rating-stars">
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                            </div>
                            <span class="product-rating-count">(78)</span>
                        </div>
                        
                        <div class="product-price">¥299.00 起</div>
                        
                        <div class="product-stats">
                            <div class="stat-item">
                                <i class="far fa-eye"></i>
                                <span>1.8k</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-comment"></i>
                                <span>97</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-bookmark"></i>
                                <span>342</span>
                            </div>
                        </div>
                        
                        <div class="product-actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-heart"></i>
                                <span>喜欢</span>
                            </button>
                            <button class="action-btn save-btn saved">
                                <i class="fas fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 商品4 -->
                <div class="product-card">
                    <div class="product-image-container">
                        <img src="https://picsum.photos/600/400?random=12" alt="无线蓝牙耳机" class="product-image">
                    </div>
                    
                    <div class="product-info">
                        <div class="product-author">
                            <img src="https://picsum.photos/100/100?random=23" alt="用户头像" class="author-avatar">
                            <span>数码科技港</span>
                        </div>
                        
                        <h3 class="product-title">无线蓝牙耳机 主动降噪 长续航 高清通话 运动耳机</h3>
                        
                        <div class="product-rating">
                            <div class="product-rating-stars">
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star-half-alt"></i>
                                <i class="far fa-star"></i>
                            </div>
                            <span class="product-rating-count">(342)</span>
                        </div>
                        
                        <div class="product-price">¥399.00</div>
                        
                        <div class="product-stats">
                            <div class="stat-item">
                                <i class="far fa-eye"></i>
                                <span>8.2k</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-comment"></i>
                                <span>543</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-bookmark"></i>
                                <span>2156</span>
                            </div>
                        </div>
                        
                        <div class="product-actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-heart"></i>
                                <span>喜欢</span>
                            </button>
                            <button class="action-btn save-btn">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 商品5 -->
                <div class="product-card">
                    <div class="product-image-container">
                        <img src="https://picsum.photos/600/400?random=13" alt="手工曲奇饼干礼盒" class="product-image">
                        <div class="product-badge">促销</div>
                    </div>
                    
                    <div class="product-info">
                        <div class="product-author">
                            <img src="https://picsum.photos/100/100?random=24" alt="用户头像" class="author-avatar">
                            <span>美食分享家</span>
                        </div>
                        
                        <h3 class="product-title">手工曲奇饼干礼盒 黄油曲奇 进口原料 送礼佳品</h3>
                        
                        <div class="product-rating">
                            <div class="product-rating-stars">
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star-half-alt"></i>
                            </div>
                            <span class="product-rating-count">(189)</span>
                        </div>
                        
                        <div class="product-price">¥88.00 <span style="text-decoration: line-through; color: var(--gray); font-size: 0.85rem;">¥128.00</span></div>
                        
                        <div class="product-stats">
                            <div class="stat-item">
                                <i class="far fa-eye"></i>
                                <span>3.5k</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-comment"></i>
                                <span>217</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-bookmark"></i>
                                <span>892</span>
                            </div>
                        </div>
                        
                        <div class="product-actions">
                            <button class="action-btn like-btn liked">
                                <i class="fas fa-heart"></i>
                                <span>喜欢</span>
                            </button>
                            <button class="action-btn save-btn saved">
                                <i class="fas fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- 商品6 -->
                <div class="product-card">
                    <div class="product-image-container">
                        <img src="https://picsum.photos/600/400?random=14" alt="专业防滑瑜伽垫" class="product-image">
                    </div>
                    
                    <div class="product-info">
                        <div class="product-author">
                            <img src="https://picsum.photos/100/100?random=25" alt="用户头像" class="author-avatar">
                            <span>运动装备库</span>
                        </div>
                        
                        <h3 class="product-title">专业防滑瑜伽垫 加厚加宽 环保无味 健身垫</h3>
                        
                        <div class="product-rating">
                            <div class="product-rating-stars">
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="far fa-star"></i>
                                <i class="far fa-star"></i>
                            </div>
                            <span class="product-rating-count">(93)</span>
                        </div>
                        
                        <div class="product-price">¥159.00</div>
                        
                        <div class="product-stats">
                            <div class="stat-item">
                                <i class="far fa-eye"></i>
                                <span>2.1k</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-comment"></i>
                                <span>143</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-bookmark"></i>
                                <span>487</span>
                            </div>
                        </div>
                        
                        <div class="product-actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-heart"></i>
                                <span>喜欢</span>
                            </button>
                            <button class="action-btn save-btn">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 分页 -->
            <div class="pagination-container">
                <div class="pagination">
                    <button class="page-btn disabled">
                        <i class="fas fa-chevron-left"></i>
                    </button>
                    <button class="page-btn active">1</button>
                    <button class="page-btn">2</button>
                    <button class="page-btn">3</button>
                    <button class="page-btn">4</button>
                    <button class="page-btn">5</button>
                    <button class="page-btn">
                        <i class="fas fa-chevron-right"></i>
                    </button>
                </div>
            </div>
        </div>
    </div>
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 移动端筛选器切换
            const filterToggle = document.querySelector('.filter-toggle');
            const filtersSidebar = document.querySelector('.filters-sidebar');
            
            filterToggle.addEventListener('click', function() {
                filtersSidebar.classList.toggle('active');
                const icon = filterToggle.querySelector('.fa-chevron-down');
                icon.classList.toggle('fa-chevron-up');
            });
            
            // 分类全选逻辑
            const categoryAll = document.getElementById('category-all');
            const categoryItems = document.querySelectorAll('.category-item input:not(#category-all)');
            
            categoryAll.addEventListener('change', function() {
                const isChecked = this.checked;
                categoryItems.forEach(item => {
                    item.checked = isChecked;
                    item.disabled = isChecked;
                });
            });
            
            categoryItems.forEach(item => {
                item.addEventListener('change', function() {
                    if (this.checked) {
                        categoryAll.checked = false;
                        categoryAll.disabled = true;
                    } else {
                        // 检查是否所有分类都未选中
                        const allUnchecked = Array.from(categoryItems).every(i => !i.checked);
                        if (allUnchecked) {
                            categoryAll.checked = true;
                            categoryAll.disabled = false;
                            categoryItems.forEach(i => i.disabled = true);
                        }
                    }
                });
            });
            
            // 清除筛选条件
            const clearButtons = document.querySelectorAll('.clear-filters');
            clearButtons.forEach(button => {
                button.addEventListener('click', function() {
                    const filterCard = this.closest('.filter-card');
                    
                    // 清除复选框
                    const checkboxes = filterCard.querySelectorAll('input[type="checkbox"]');
                    checkboxes.forEach(checkbox => {
                        if (checkbox.id === 'category-all') {
                            checkbox.checked = true;
                            categoryItems.forEach(item => {
                                item.checked = true;
                                item.disabled = true;
                            });
                        } else {
                            checkbox.checked = false;
                        }
                    });
                    
                    // 清除单选按钮
                    const radioGroups = {};
                    filterCard.querySelectorAll('input[type="radio"]').forEach(radio => {
                        const name = radio.name;
                        if (!radioGroups[name]) {
                            radioGroups[name] = [];
                        }
                        radioGroups[name].push(radio);
                    });
                    
                    Object.values(radioGroups).forEach(group => {
                        group.forEach(radio => {
                            radio.checked = radio.id.includes('all');
                        });
                    });
                    
                    // 清除价格输入框
                    const priceInputs = filterCard.querySelectorAll('.price-input');
                    priceInputs.forEach(input => {
                        input.value = '';
                    });
                });
            });
            
            // 点赞功能
            const likeButtons = document.querySelectorAll('.like-btn');
            likeButtons.forEach(button => {
                button.addEventListener('click', function() {
                    this.classList.toggle('liked');
                    const icon = this.querySelector('i');
                    
                    if (this.classList.contains('liked')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                    }
                });
            });
            
            // 收藏功能
            const saveButtons = document.querySelectorAll('.save-btn');
            saveButtons.forEach(button => {
                button.addEventListener('click', function() {
                    this.classList.toggle('saved');
                    const icon = this.querySelector('i');
                    
                    if (this.classList.contains('saved')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                    }
                });
            });
            
            // 搜索功能
            const searchInput = document.querySelector('.search-input');
            searchInput.addEventListener('keyup', function(e) {
                if (e.key === 'Enter') {
                    const searchTerm = this.value.trim();
                    if (searchTerm) {
                        alert(`搜索: ${searchTerm}`);
                        // 这里可以添加实际搜索逻辑
                    }
                }
            });
            
            // 分页功能
            const pageButtons = document.querySelectorAll('.page-btn:not(.disabled)');
            pageButtons.forEach(button => {
                if (!button.querySelector('i')) { // 不是箭头按钮
                    button.addEventListener('click', function() {
                        pageButtons.forEach(btn => btn.classList.remove('active'));
                        this.classList.add('active');
                        // 这里可以添加实际分页逻辑
                    });
                }
            });
            
            // 应用筛选按钮
            const applyButtons = document.querySelectorAll('.apply-filters');
            applyButtons.forEach(button => {
                button.addEventListener('click', function() {
                    // 在移动端点击应用筛选后收起筛选面板
                    if (window.innerWidth <= 768) {
                        filtersSidebar.classList.remove('active');
                        const icon = filterToggle.querySelector('.fa-chevron-down');
                        icon.classList.remove('fa-chevron-up');
                    }
                    
                    // 这里可以添加实际应用筛选条件的逻辑
                    alert('筛选条件已应用');
                });
            });
        });
    </script>
</body>
</html>
    
